
import QtQuick 2.0
import DreamLab.Icons

Item {
    property int style: 1
    required property string icon
    property alias color: text.color
    property int size: 28
    enum IconStyle {
        Brand = 0, Regular = 1, Solid = 2
    }
    Text {
        id: text
        anchors.centerIn: parent
        text: parent.icon
        font.family: [FAFonts.brandFont.name, FAFonts.regularFont.name, FAFonts.solidFont.name][parent.style]
        font.pixelSize: parent.size
    }
}
